package com.voltmao.persistent.model;

import org.mybatis.annotation.Field;
import org.mybatis.annotation.Table;

import java.io.Serializable;

/**
 * sys_dictionary
 */
@Table(name = "sys_dictionary")
public class SysDictionary implements Serializable {
    /**
     * dataId
     */
    public static final String DATAID = "dataId";

    /**
     * dataId
     */
    @Field(columnName = "data_id", jdbcType = "VARCHAR", javaType = String.class, length = 36, scale = 0)
    private String dataId;

    /**
     * code
     */
    public static final String CODE = "code";

    /**
     * code
     */
    @Field(columnName = "code", jdbcType = "VARCHAR", javaType = String.class, length = 36, scale = 0)
    private String code;

    /**
     * pcode
     */
    public static final String PCODE = "pcode";

    /**
     * pcode
     */
    @Field(columnName = "pcode", jdbcType = "VARCHAR", javaType = String.class, length = 36, scale = 0)
    private String pcode;

    /**
     * name
     */
    public static final String NAME = "name";

    /**
     * name
     */
    @Field(columnName = "name", jdbcType = "VARCHAR", javaType = String.class, length = 255, scale = 0)
    private String name;

    /**
     * sortNum
     */
    public static final String SORTNUM = "sortNum";

    /**
     * sortNum
     */
    @Field(columnName = "sort_num", jdbcType = "INTEGER", javaType = Integer.class, length = 10, scale = 0)
    private Integer sortNum;

    /**
     * remark
     */
    public static final String REMARK = "remark";

    /**
     * remark
     */
    @Field(columnName = "remark", jdbcType = "VARCHAR", javaType = String.class, length = 2000, scale = 0)
    private String remark;

    private static final long serialVersionUID = 1L;

    /**
     * @return dataId
     * dataId
     */
    public String getDataId() {
        return dataId;
    }

    /**
     * @param dataId dataId
     */
    public void setDataId(String dataId) {
        this.dataId = dataId == null ? null : dataId.trim();
    }

    /**
     * @return code
     * code
     */
    public String getCode() {
        return code;
    }

    /**
     * @param code code
     */
    public void setCode(String code) {
        this.code = code == null ? null : code.trim();
    }

    /**
     * @return pcode
     * pcode
     */
    public String getPcode() {
        return pcode;
    }

    /**
     * @param pcode pcode
     */
    public void setPcode(String pcode) {
        this.pcode = pcode == null ? null : pcode.trim();
    }

    /**
     * @return name
     * name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name name
     */
    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    /**
     * @return sortNum
     * sortNum
     */
    public Integer getSortNum() {
        return sortNum;
    }

    /**
     * @param sortNum sortNum
     */
    public void setSortNum(Integer sortNum) {
        this.sortNum = sortNum;
    }

    /**
     * @return remark
     * remark
     */
    public String getRemark() {
        return remark;
    }

    /**
     * @param remark remark
     */
    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }
}